import request from '@/utils/request'

export default{
    
    toGetAdminInfo(){
        return request({
          url:`/admin/admin/getAdminInfo`,
          method:'get'
        })
    },
    //更新信息
    toUpdateAdminInfo(admin){
        return request({
            url:'/admin/admin/updateAdmin',
            method:'post',
            data:admin
        })
    },
    //更新密码
    toUpdateAdminPwd(admin){
        return request({
            url:'/admin/admin/updatePwd',
            method:'post',
            data:admin
        })
    }

}